package city.spring.modules.oldman.repository;

import city.spring.modules.oldman.entity.OldmanDiningfeeEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 存储库：老人餐饮费
 *
 * @author 谢金婷
 * @date 2020-09-05 23:13:11
 */
@Repository
public interface OldmanDiningfeeRepository extends BaseMapper<OldmanDiningfeeEntity> {

    /**
     * 根据oldmanId查找老人餐饮费
     *
     * @param oldmanId
     * @return
     */
    List<OldmanDiningfeeEntity> getDiningfeeByOldmanId(@Param("oldmanId") String oldmanId);
}